package com.spvs.approval.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spvs.approval.domain.ApprovalSubmitEntity;
import com.spvs.common.core.web.domain.AjaxResult;

import java.util.Map;

/**
 * 审批提交信息表
 */
public interface ApprovalSubmitService extends IService<ApprovalSubmitEntity> {

    Page<ApprovalSubmitEntity> queryPage(Map<String, Object> params);

    Page<ApprovalSubmitEntity> queryAppPage(Map<String, Object> params);

    Page<ApprovalSubmitEntity> approvePage(Map<String, Object> params);

    Page<ApprovalSubmitEntity> userApprovedList(Map<String, Object> params);

    Page<ApprovalSubmitEntity> userSubmitList(Map<String, Object> params);

//    /**
//     * 审批信息提交
//     * @param sysUserEntity
//     * @param id  审批信息id
//     * @param status 审批状态
//     * @param remark 审批备注
//     * @return
//     */
//    AjaxResult approvalSubmit(SysUserEntity sysUserEntity, Integer id, Integer status, String remark, String ipStr);

    int selectApprovalByCreateUserId(int approvalStatus, int createUserId );

    int selectApprovalByStaffId(int approvalStatus, String staffId );

    AjaxResult selectApprovalSubmitVo(String businessId);
}

